class ZEGOCookieMiddleware:
    def __init__(self, get_response):
        self.get_response = get_response

    def __call__(self, request):
        ## 获取cookie
        user = request.COOKIES.get("hello_name", "")
        response = self.get_response(request)
        if request.COOKIES.get("username") is None and user != "":
            response.set_cookie("username", user)
        ## test ci
        return response